//
//  BoxCostHeadView.m
//  111
//
//  Created by longma on 2018/10/8.
//  Copyright © 2018年 XLH. All rights reserved.
//阴影渐变

#import "MJUIShadowGradientView.h"

@implementation MJUIShadowGradientView


- (void)awakeFromNib{
    [super  awakeFromNib];
   
}

- (void)layoutSubviews{
    [super layoutSubviews];

    [self.superview layoutIfNeeded];
    
    if(self.itemType == 1){
        [self mj_gradientLayerWithColors:@[(id)MJUIColorFromHex(0xFFFFFF).CGColor,(id)MJUIColorFromHex(0xF0FAFB).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)];
        
        [self mj_dropShadowWithOffset:CGSizeMake(0, 2)
                             cornerRadius:6
                                   radius:3
                                     color:[UIColor mj_colorWithHexString:@"#000000" alpha:0.16]
                                         opacity:1];
        
       

    }
   
}

@end
